package com.htthorizon.neo4j.service.impl;

import com.htthorizon.neo4j.entity.Root;
import com.htthorizon.neo4j.repository.RootRepository;
import com.htthorizon.neo4j.service.RootServiceNeo4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Brilliant
 */
@Service
public class RootServiceNeo4jImpl implements RootServiceNeo4j {

    @Autowired
    private RootRepository rootRepository;

    @Override
    public void add(Root root) {
        rootRepository.save(root);
    }
}
